package com.lanbu.system.service.impl;

import java.util.List;
import com.lanbu.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lanbu.system.mapper.ZntModuleScoreMapper;
import com.lanbu.system.domain.ZntModuleScore;
import com.lanbu.system.service.IZntModuleScoreService;

/**
 * 模块得分Service业务层处理
 *
 * @author lanbu
 * @date 2025-04-24
 */
@Service
public class ZntModuleScoreServiceImpl implements IZntModuleScoreService
{
    @Autowired
    private ZntModuleScoreMapper zntModuleScoreMapper;

    @Override
    public ZntModuleScore selectZntModuleScoreById(Long id)
    {
        return zntModuleScoreMapper.selectZntModuleScoreById(id);
    }

    @Override
    public List<ZntModuleScore> selectZntModuleScoreList(ZntModuleScore zntModuleScore)
    {
        return zntModuleScoreMapper.selectZntModuleScoreList(zntModuleScore);
    }

    @Override
    public int insertZntModuleScore(ZntModuleScore zntModuleScore)
    {
        zntModuleScore.setCreateTime(DateUtils.getNowDate());
        return zntModuleScoreMapper.insertZntModuleScore(zntModuleScore);
    }

    @Override
    public int updateZntModuleScore(ZntModuleScore zntModuleScore)
    {
        zntModuleScore.setUpdateTime(DateUtils.getNowDate());
        return zntModuleScoreMapper.updateZntModuleScore(zntModuleScore);
    }

    @Override
    public int deleteZntModuleScoreByIds(Long[] ids)
    {
        return zntModuleScoreMapper.deleteZntModuleScoreByIds(ids);
    }

    @Override
    public int deleteZntModuleScoreById(Long id)
    {
        return zntModuleScoreMapper.deleteZntModuleScoreById(id);
    }
}
